Current Location: Home> Function Categories> exp

exp

Calculate the index of e
Name:exp
Category:math
Programming Language:php
One-line Description:Returns the value to the x power of E.

Definition and usage

exp() function calculates the exponent of e.

Example

In this example, we will apply the exp() function to different numbers:

 <?php
echo ( exp ( 1 ) ) ;
echo ( exp ( - 1 ) ) ;
echo ( exp ( 5 ) ) ;
echo ( exp ( 10 ) )
?>

Try it yourself

grammar

 exp ( x )
parameter describe
x Required. A number.

illustrate

Returns the x -power value of e. .

Similar Functions
  • Determine whether it is a legal value is_nan

    is_nan

    Determinewhetheritis
  • Round floating point numbers round

    round

    Roundfloatingpointnu
  • Perform floating point division under IEEE 754 semantics fdiv

    fdiv

    Performfloatingpoint
  • Get the pi value pi

    pi

    Getthepivalue
  • Exponential expressions pow

    pow

    Exponentialexpressio
  • Convert decimal to hexadecimal dechex

    dechex

    Convertdecimaltohexa
  • Generate better random numbers mt_rand

    mt_rand

    Generatebetterrandom
  • Further method to sort ceil

    ceil

    Furthermethodtosort
Popular Articles